package com.fzy.auth.entity;


/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.class table="fz_user_role_rel"
 * @hibernate.meta attribute="class-description" value="用户角色关系"
 * @hibernate.comment 用户角色关系
 */
public class UserRoleRel {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7198106142518236783L;
	Long id;
	Long userId;
	Long roleId;
	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_user_role_rel"
     * @hibernate.meta attribute="field-description" value="ID"
     * @hibernate.comment ID(s_fz_user_role_rel)
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	/**
     * @hibernate.property column="user_id" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="用户ID"
     * @hibernate.comment 用户ID(fz_user.id)
     */
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
     * @hibernate.property column="role_id" type="long" not-null="true"
     * @hibernate.meta attribute="field-description" value="角色ID"
     * @hibernate.comment 角色ID(fz_role.id)
     */
	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
